package pit.com.ordermobilesystem.tabhost;

import pit.com.ordermobilesystem.R;
import pit.com.ordermobilesystem.TellTitlesFragment;
import pit.com.ordermobilesystem.a.TitlesActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class TabGroup2Activity extends TabGroupActivity{
	private Boolean mDualPane;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        View detailsFrame = findViewById(R.id.details_frag);
        mDualPane = detailsFrame != null
				&& detailsFrame.getVisibility() == View.VISIBLE;
        if (mDualPane) {
        	 startChildActivity("TellTitlesFragment", new Intent(this,TellTitlesFragment.class));
        } else{
        	 startChildActivity("TitlesActivity", new Intent(this,TitlesActivity.class));
        }
       
    }
}